
public class IndStats {
	
	String playerName;
	int playerID;
	int gamesPlayed;
	int minutesPlayed;
	double ppg;
	double rpg;
	double apg;
	int offReb;
	int defReb;
	int totReb;
	int assists;
	int steals;
	int blocks;
	int turnovers;
	int fouls;
	int fgmade;
	int fgattempted;
	double fgper;
	int threesmade;
	int threesattempted;
	double threesper;
	int ftmade;
	int ftattempted;
	double ftper;
	int points;
	int highPoints;
	
	public void playerName(String i){ playerName = i; }
	public void playerID(int i){ playerID = i; }
	public void gamesPlayed(int i){ gamesPlayed = i; }
	public void minutesPlayed(int i){ minutesPlayed = i; }
	public void ppg(double i){ ppg = i; }
	public void rpg(double i){ rpg = i; }
	public void apg(double i){ apg = i; }
	public void offReb(int i){ offReb = i; }
	public void defReb(int i){ defReb = i; }
	public void totReb(int i){ totReb = i; }
	public void assists(int i){ assists = i; }
	public void steals(int i){ steals = i; }
	public void blocks(int i){ blocks = i; }
	public void turnovers(int i){ turnovers = i; }
	public void fouls(int i){ fouls = i; }
	public void fgmade(int i){ fgmade = i; }
	public void fgattempted(int i){ fgattempted = i; }
	public void fgper(double i){ fgper = i; }
	public void threesmade(int i){ threesmade = i; }
	public void threesattempted(int i){ threesattempted = i; }
	public void threesper(double i){ threesper = i; }
	public void ftmade(int i){ ftmade = i; }
	public void ftattempted(int i){ ftattempted = i; }
	public void ftper(double i){ ftper = i; }
	public void points(int i){ points = i; }
	public void highPoints(int i){ highPoints = i; }
	
	public String toString(){
		String player = playerName + " (" + playerID + ")\n  ";
		player += "Games played:\t" + gamesPlayed + " (" + minutesPlayed + " minutes)\n";
		player += "  PPG:\t" + ppg + " RPG:\t" + rpg + " APG:\t" + apg;
		return player;
	}
	
	public String csv(){
		String player =	playerName + ", " + playerID + ", " + gamesPlayed + ", " + minutesPlayed + ", " + ppg + ", " + rpg
						+ ", " + apg + ", " + offReb + ", " + defReb + ", " + totReb + ", " + assists + ", " + steals
						+ ", " + blocks + ", " + turnovers + ", " + fouls + ", " + fgmade + ", " + fgattempted + ", " + fgper
						+ ", " + threesmade + ", " + threesattempted + ", " + threesper + ", " + ftmade + ", " + ftattempted
						+ ", " + ftper + ", " + points + ", " + highPoints;
		 return player;
	}
}
